<%@ include file="/common/taglibs.jsp"%>

<div class="separator"></div>
<div style="margin-bottom:10px;height:45px;">
	<ul class="glassList" style="float:right;">
	    <li>
	    	<a class="button-green" href="<c:url value='/showCandidateForm'/>">Create New</a> 
	    </li>
	</ul>
</div>

<div id="user-grid">
<%= request.getAttribute("userGridString") %>
<div id="gridRecordDetails"></div>
</div>

<%-- <div>
	<table id="instHeaderTable" class="reference">
		<tr>
			<th>Id</th>
			<th>User Name</th>
			<th>Full Name</th>
			<th>Email</th>
			<th>Status</th>
		</tr>
		<s:iterator value="users" status="rowstatus">
			<tr>
				<td>
					<a href='/editCandidate?method=editCandidate&id=${id}'>
						<s:property value="id" />
					</a>
				</td>
				<td><s:property value="username" /></td>
				<td><s:property value="fullName" /></td>
				<td><s:property value="email" /></td>
				<td><s:property value="status"/></td>
			</tr>
		</s:iterator>
	</table>
</div> --%>




<%-- <head>
    <title><fmt:message key="userList.title"/></title>
    <meta name="heading" content="<fmt:message key='userList.heading'/>"/>
    <meta name="menu" content="AdminMenu"/>
</head> --%>

<%-- <div id="search">
<form method="get" action="${ctx}/admin/users" id="searchForm">
    <input type="text" size="20" name="q" id="query" value="${param.q}" placeholder="Enter search terms..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div> --%>

<%-- <input type="button" style="margin-right: 5px" onclick="location.href='<c:url value="/editCandidate?method=Add&from=list"/>'" value="adds"/>
    
<input type="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/> --%>



<%--  
<display:table name="users" cellspacing="0" cellpadding="0" requestURI=""  defaultsort="1" id="users" pagesize="25" class="table" >

   <display:column property="username" escapeXml="true" sortable="true" titleKey="user.username" style="width: 25%" url="/editCandidate?from=list" paramId="id" paramProperty="id"/>
    <display:column property="fullName" escapeXml="true" sortable="true" titleKey="activeUsers.fullName" style="width: 34%"/>
    <display:column property="email" sortable="true" titleKey="user.email" style="width: 25%" autolink="true" media="html"/>
    <display:column property="email" titleKey="user.email" media="csv xml excel pdf"/>
    <display:column sortProperty="enabled" sortable="true" titleKey="user.enabled" style="width: 16%; padding-left: 15px" media="html">
        <input type="checkbox" disabled="disabled" <c:if test="${users.enabled}">checked="checked"</c:if>/>
    </display:column>
    
   <display:column property="enabled" titleKey="user.enabled" media="csv xml excel pdf"/>

    <display:setProperty name="paging.banner.item_name" value="user"/>
    <display:setProperty name="paging.banner.items_name" value="users"/>

    <display:setProperty name="export.excel.filename" value="User List.xls"/>
    <display:setProperty name="export.csv.filename" value="User List.csv"/>
    <display:setProperty name="export.pdf.filename" value="User List.pdf"/> 
</display:table>
--%>
<%-- <input type="button" style="margin-right: 5px" onclick="location.href='<c:url value="/editCandidate?method=Add&from=list"/>'" value="<fmt:message key="button.add"/>"/>
    
<input type="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/> --%>

<script type="text/javascript">
    highlightTableRows("users");
</script>
